/**
 * https://github.com/vuejs/vuex/blob/dev/examples/shopping-cart/api/shop.js
 * Mocking client-server processing
 */


class UserManager {

    user;
    setUser(user) {
        this.user = user;
    }

    getUser() {
        return this.user;
    }

    isLogin() {
        return !!this.user;
    }


}


let userManager = new UserManager();

export default userManager;
